package com.pengxh.app.gb28181;

import android.app.Application;

public class GB28181Application extends Application {
    private volatile static GB28181Application instance;

    /**
     * 双重锁单例
     */
    public static GB28181Application get() {
        if (instance == null) {
            synchronized (GB28181Application.class) {
                if (instance == null) {
                    instance = new GB28181Application();
                }
            }
        }
        return instance;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        instance = this;
    }
}
